//
//  DYShopAuthVC.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/21.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYShopAuthVC.h"
#import "DYSetCollectionCell.h"
#import "DYAddBranchShopCell.h"
#import "DYShopAuthFooterView.h"

@interface DYShopAuthVC ()

@property (nonatomic,strong)DYShopAuthFooterView *footerView;

@end

@implementation DYShopAuthVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"商铺认证";
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.tableView.backgroundColor=WhiteColor;
    
    [self.tableView registerClass:[DYSetCollectionCell class] forCellReuseIdentifier:@"DYSetCollectionCell"];
    [self.tableView registerClass:[DYAddBranchShopCell class] forCellReuseIdentifier:@"DYAddBranchShopCell"];

    self.tableView.tableFooterView=self.footerView;
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 2;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row==0) {
        return BILIHEIGHT(104);
    }
    return BILIHEIGHT(58);
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row==0) {
        DYSetCollectionCell *cell=[tableView dequeueReusableCellWithIdentifier:@"DYSetCollectionCell" forIndexPath:indexPath];
        cell.titleLabel.text=@"认证照片";
        cell.tipLabel.text=@"上传法人手持身份证照片";
        return cell;
    }
    DYAddBranchShopCell *cell=[tableView dequeueReusableCellWithIdentifier:@"DYAddBranchShopCell" forIndexPath:indexPath];
    cell.titleLabel.text=@"认证费用";
    cell.textField.text=@"300元";
    cell.textField.enabled=NO;
    return cell;
}
-(DYShopAuthFooterView *)footerView
{
    if (!_footerView) {
        _footerView=[[DYShopAuthFooterView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, BILIHEIGHT(200))];
    }
    return _footerView;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
